package com.atguigu.gmall.product;

import com.atguigu.gmall.common.config.Swagger2Config;
import com.atguigu.gmall.common.config.minio.annotation.EnableMinio;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

/**
 * @ClassName: ProductApplication
 * @Author: WDD
 * @CreateTime: 2022-11-29  21:27
 * @Description:
 */
//@EnableCircuitBreaker //服务发现
//@EnableDiscoveryClient //服务熔断
//@SpringBootApplication
@EnableFeignClients(basePackages = "com.atguigu.gmall.feign.search")
@SpringCloudApplication //cloud服务 三合一
@MapperScan("com/atguigu/gmall/product/mapper") //mapper扫描
@Import(Swagger2Config.class)
@EnableMinio //自定义注解开启minio
public class ProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class, args);
    }
}
